package com.hospital.doctor.controller;

import com.hospital.common.result.R;
import com.hospital.doctor.domain.Communication;
import com.hospital.doctor.domain.ConsultRecordInfo;
import com.hospital.doctor.service.EltCommunicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.web.JsonPath;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author：zhuzhujiang
 * @Description:
 * @name：EltCommunicationController
 * @Date：2024/10/20 16:48
 */
@RestController
@RequestMapping("communication")
public class EltCommunicationController {

    @Autowired
    private EltCommunicationService eltCommunicationService;

    /**
     * 查询交谈历史
     * @param consultId
     * @return
     */
    @GetMapping("/getCommunicationHistory/{consultId}")
    public R<List<Communication>> getCommunicationHistory(@PathVariable("consultId") Long consultId){

        List<Communication> list = eltCommunicationService.getCommunicationHistory(consultId);

        return R.success(list);
    }





}
